﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Wicresoft.SMS.Common;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for IUserServiceTest and is intended
    ///to contain all IUserServiceTest Unit Tests
    ///</summary>
    [TestClass()]
    public class IUserServiceTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual IUserService CreateIUserService()
        {
            // TODO: Instantiate an appropriate concrete class.
            IUserService target = null;
            return target;
        }

        /// <summary>
        ///A test for ActiveUsers
        ///</summary>
        [TestMethod()]
        public void ActiveUsersTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            bool isactive = false; // TODO: Initialize to an appropriate value
            string[] userids = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.ActiveUsers(isactive, userids);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AskForActive
        ///</summary>
        [TestMethod()]
        public void AskForActiveTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            int id = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.AskForActive(id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CreateOrUpdateUser
        ///</summary>
        [TestMethod()]
        public void CreateOrUpdateUserTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            User user = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.CreateOrUpdateUser(user);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CreateOrUpdateUser
        ///</summary>
        [TestMethod()]
        public void CreateOrUpdateUserTest1()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            C_evw_Employee[] users = null; // TODO: Initialize to an appropriate value
            bool isactive = false; // TODO: Initialize to an appropriate value
            bool isadmin = false; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.CreateOrUpdateUser(users, isactive, isadmin);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetAllUsers
        ///</summary>
        [TestMethod()]
        public void GetAllUsersTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            int index = 0; // TODO: Initialize to an appropriate value
            int max = 0; // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            List<UserInfo> expected = null; // TODO: Initialize to an appropriate value
            List<UserInfo> actual;
            actual = target.GetAllUsers(index, max, key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetPageCount
        ///</summary>
        [TestMethod()]
        public void GetPageCountTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            int max = 0; // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetPageCount(max, key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUserItemByCIL
        ///</summary>
        [TestMethod()]
        public void GetUserItemByCILTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            string cil = string.Empty; // TODO: Initialize to an appropriate value
            User expected = null; // TODO: Initialize to an appropriate value
            User actual;
            actual = target.GetUserItemByCIL(cil);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUserItemByID
        ///</summary>
        [TestMethod()]
        public void GetUserItemByIDTest()
        {
            IUserService target = CreateIUserService(); // TODO: Initialize to an appropriate value
            int id = 0; // TODO: Initialize to an appropriate value
            User expected = null; // TODO: Initialize to an appropriate value
            User actual;
            actual = target.GetUserItemByID(id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
